#define _CRT_SECURE_NO_WARNINGS
int n, p;